package HomeWork0729;

import java.io.ObjectInputStream.GetField;
import java.util.Scanner;

import org.junit.Test;

public class demo {
	public static void main(String[] args) {
		
		Number number = new Number(2, 3);
		int addResult = number.add();
		System.out.println(addResult);
		int subResult = number.sub();
		System.out.println(subResult);
		int multiResult = number.multi();
		System.out.println(multiResult);
		int divResult = number.div();
		System.out.println(divResult);
		
		
	}
	
	@Test
	public void test() {
		Rect rect = new Rect(5, 6);
		int mianjiResult = rect.mianJi();
		System.out.println(mianjiResult);
		int zhouchangResult = rect.zhouChang();
		System.out.println(zhouchangResult);
	}
	@Test
	public void test2() {
		Point point = new Point(2,5);
		point.movePoint(1, 2);
		System.out.println(point.getX() +"," +point.getY());
				
		
		
	}
	
		

	}


